package com.example.lcpharmacy.mapper;

import com.example.lcpharmacy.entity.CartEntity;
import com.example.lcpharmacy.entity.resBean.ShowCartInfo;
import org.apache.ibatis.annotations.Mapper;

import java.math.BigDecimal;
import java.util.List;

@Mapper
public interface CartDao {

    int addCart(CartEntity cartEntity);

    int addGoodsQuan(CartEntity cartEntity);

    List<ShowCartInfo> selectByName(String name);

    Integer selectMaxCartCode();

    int subGoodsQuan(CartEntity cartEntity);

    BigDecimal selectQuanByCode(Integer cartCode);

    int sureStatus(Integer cartCode);

    int unsureStatus(Integer cartCode);

    CartEntity queryByGoodCode(CartEntity cartEntity);
}
